package cn.itzd.controller;


import cn.itzd.service.SysRoleService;
import cn.itzd.utils.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (DadaRole)表控制层
 *
 * @author makejava
 */
@RestController
@RequestMapping("/system/role")
public class SysRoleController {
    /**
     * 服务对象
     */
    @Resource
    private SysRoleService sysRoleService;

    @GetMapping("/roles")
    public R<?> roles() {
        return R.ok(sysRoleService.roles());
    }
}

